import { Component, OnInit } from '@angular/core';
import { bus, setupApp, preloadApp, startApp, destroyApp } from 'wujie';

@Component({
  selector: 'app-micro-app',
  templateUrl: './micro-app.component.html',
  styleUrls: ['./micro-app.component.less'],
})
export class MicroAppComponent implements OnInit {
  constructor() {}

  ngOnInit(): void {
    this.init();
  }

  init(): void {
    startApp({
      name: 'Angular',
      url: 'http://localhost:4201/ngSubApp/',
      el: '#wujie',
    });
  }
}
